package main

import "fmt"

func main() {
	// 标准写法
	for i := 1;i<99;i++{
		fmt.Println(i)
	}
	// 进阶
	i := 1
	for ;i<99;i++{
		fmt.Println(i)
	}

	// 进阶
	for i < 99{
		fmt.Println(i)
		i+=1
	}

	// 死循环
	//for  {
	//	fmt.Println(111)
	//
	//}

	// range
	name := "hhee肖禹庭"
	for a, v := range name{
		//fmt.Println(a, v)
		fmt.Printf("%d,%c\n", a, v)
	}
}


//0,h
//1,h
//2,e
//3,e
//4,肖
//7,禹
//10,庭
